<?php

App::uses('AppModel', 'Model');

class ProductPrice extends AppModel{
	
	public $belongsTo = array('Product');
	
	public $validate = array(
		'price' => array(
			'rule' => 'notEmpty',
			'allowEmpty' => false,
			'message' => 'Morate uneti cenu proizvoda'
		)
	);
	public $order = "ProductPrice.effective_date DESC, ProductPrice.id DESC";
	
}

?>